BAUD

Syntax: BAUD bps
    or: BAUD [port,] bps  (SMS and ST/QL only)
Location: QL ROM

The serial port(s) use a certain speed to communicate with printers, modems, other computers, interfaces etc.  This speed is set with BAUD.
The only values allowed for the parameter are set out below:

BAUD will set the same output and input baud rate for both serial ports.


            75
           300
           600
          1200
          2400
          4800
          9600
         19200

NOTE:
The effect of BAUD 19200 depends on the hardware.
The standard QL cannot safely handle the input of data at baud rates greater than 1200.

THOR XVI NOTES:
The THOR XVI allows the following additional baud rates:


           110
           134.5
           150
          1800

Independent baud rates may also be used on output and input channels when the channel is opened by using an extended device name.

MINERVA NOTES:
Minerva v1.93+ now enables you to set different output baudrates for ser1 and ser2.  Unfortunately, this will only work if both ports are output only, unless you have Hermes.

To disable the ability to handle different output baud rates, use:

POKE !124 !49,2

In order to set the two baudrates independently, BAUD will now accept additional values in the range -1 to -128. This is calculated by looking at the following table, working out which features you will need and adding the values accordingly to -128:

        Value to Add    Effect
        64              Alters ser2 baudrate (ser1 is default)
        16              Prevents standard BAUD command from altering
                        baudrate on this port
        7               Selects BAUD 75 on this port
        6               Selects BAUD 300 on this port
        5               Selects BAUD 600 on this port
        4               Selects BAUD 1200 on this port
        3               Selects BAUD 2400 on this port
        2               Selects BAUD 4800 on this port
        1               Selects BAUD 9600 on this port
        0               Selects BAUD 19200 on this port

Please only try to add one baud rate value!!

Minerva Examples:
BAUD -128

sets the baud rate for ser1 output at 19200. ser2 is unaffected.

SMSQ AND ST/QL NOTES:
If BAUD is only followed by one parameter, then it sets the baud rates for both SER1 and SER2 on the QL, AURORA and QXL boards.  However, if SMSQ/E is running on an ATARI computer, or the command is used on an ST/QL Emulator then it only sets the baud rate on SER1.

You can however supply two parameters to the command to set independent baud rates (note that on a standard QL or Aurora, Hermes is needed for independent baud rates on each serial port).  In this case, the first parameter is the number of the serial port to be set and the second number is the new baud rate, for example:

BAUD 1,19200

sets the baud rate on SER1 to 19200 - any other serial ports are left unaffected.  If the rate (bps) is specified as zero, this selects the highest possible BAUD rate on that port.

Additional BAUD rates are also supported on SMSQ/E depending on the hardware.

CROSS-REFERENCE:
SER_... and PAR_... commands allow you to set various other parameters for serial and parallel ports.
You can check the current baud rate setting with BAUDRATE.
